﻿/***********************************************************************
 * <copyright file="NewsLog.cs" company="BUCA JSC">
 * -->    Copyright (C) statement. All right reserved
 * </copyright>
 * 
 * Created:  Nguyen Chi Binh
 * Email:    nguyentribinh@live.com
 * Website:
 * Create Date: Sunday, April 6, 2014
 * Usage: 
 * 
 * RevisionHistory: 
 * Date         Author               Description 
 * 
 * ************************************************************************/

using System;
using BusinessObjects;

namespace BusinessNews
{
    /// <summary>
    /// NewsLog class
    /// </summary>
    public class NewsLog : BusinessObject
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="NewsLog"/> class.
        /// </summary>
        /// <param name="id">The identifier.</param>
        /// <param name="Title">The Title.</param>
        /// <param name="content">The content.</param>
        /// <param name="ip">The ip.</param>
        /// <param name="location">The location.</param>
        /// <param name="device">The device.</param>
        /// <param name="createdBy">The created by.</param>
        /// <param name="createdDate">The created date.</param>
        /// <param name="type">The type.</param>
        public NewsLog(long id, string Title, string content, string ip, string location, string device, string createdBy, DateTime? createdDate, string type)
        {
            Id = id;
            Title = Title;
            Content = content;
            Ip = ip;
            Location = location;
            Device = device;
            CreatedBy = createdBy;
            CreatedDate = createdDate;
            Type = type;
        }

        public NewsLog()
        {
           
        }

        /// <summary>
        /// Gets or sets the identifier.
        /// </summary>
        /// <value>
        /// The identifier.
        /// </value>
        public long Id { get; set; }

        /// <summary>
        /// Gets or sets the Title.
        /// </summary>
        /// <value>
        /// The Title.
        /// </value>
        public string Title { get; set; }

        /// <summary>
        /// Gets or sets the content.
        /// </summary>
        /// <value>
        /// The content.
        /// </value>
        public string Content { get; set; }

        /// <summary>
        /// Gets or sets the ip.
        /// </summary>
        /// <value>
        /// The ip.
        /// </value>
        public string Ip { get; set; }

        /// <summary>
        /// Gets or sets the location.
        /// </summary>
        /// <value>
        /// The location.
        /// </value>
        public string Location { get; set; }

        /// <summary>
        /// Gets or sets the device.
        /// </summary>
        /// <value>
        /// The device.
        /// </value>
        public string Device { get; set; }

        /// <summary>
        /// Gets or sets the created by.
        /// </summary>
        /// <value>
        /// The created by.
        /// </value>
        public string CreatedBy { get; set; }

        /// <summary>
        /// Gets or sets the created date.
        /// </summary>
        /// <value>
        /// The created date.
        /// </value>
        public DateTime? CreatedDate { get; set; }

        /// <summary>
        /// Gets or sets the type.
        /// </summary>
        /// <value>
        /// The type.
        /// </value>
        public string Type { get; set; }

    }
}
